package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Member;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author qzh
 * @create 2020-01-28 2020/1/28
 */
public interface MemberService {

    //分页查询会员信息
    public PageResult findPage(QueryPageBean queryPageBean);
    //根据手机号查询会员
    public Member findByTelphone(String telephone);

    //注册会员
    public void add(Member member);

    //根据月份查询会员数量
    List<Integer> findMemberCountByMonths(List<String> months);


    //编辑会员信息
    public void edit(Member member);

    //根据id查询会员
    public Member findById(Integer id);

    //根据id删除会员
    public void delete(Integer id);


    Map findMemberAndOrderByOrderId(Integer id);
}
